home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.4 / init.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-16  |  1.2 KB  |  34 lines

  1. # Do all the work for Automake.  This macro actually does too much --
  2. # some checks are only needed if your package does certain things.
  3. # But this isn't really a big deal.
  4.  
  5. # serial 1
  6.  
  7. dnl Usage:
  8. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  9.  
  10. AC_DEFUN([AM_INIT_AUTOMAKE],
  11. [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  12. AC_REQUIRE([AC_PROG_INSTALL])
  13. PACKAGE=[$1]
  14. AC_SUBST(PACKAGE)
  15. VERSION=[$2]
  16. AC_SUBST(VERSION)
  17. dnl test to see if srcdir already configured
  18. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  19.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  20. fi
  21. ifelse([$3],,
  22. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  23. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  24. AC_REQUIRE([AM_SANITY_CHECK])
  25. AC_REQUIRE([AC_ARG_PROGRAM])
  26. dnl FIXME This is truly gross.
  27. missing_dir=`cd $ac_aux_dir && pwd`
  28. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  29. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  30. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  31. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  32. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  33. AC_REQUIRE([AC_PROG_MAKE_SET])])
  34.